/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package extension.game.util;

/**
 *
 * @author daz
 */
public class Utils {

    public static int fibonaci(int n) {
        int fchan = 0, fle = 1, i = 1;
        for (i = 3; i <= n; i += 2) {
            fchan = fchan + fle;
            fle = fchan + fle;
        }
        if (n % 2 == 0) {
            return (fchan + fle);
        }
        return fle;

    }
}
